home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
20
/
2
/
DISK2028.ZIP
/
READ.ME
< prev
next >
Wrap
Text File
|
1989-06-07
|
7KB
|
158 lines
June 7, 1989 09:30
Dan Ross
1346 River St.
Santa Cruz, CA 95060
(408)426-4197
Laser printer font
This diskette contains a proportional-pitch font in portrait orientation, for
use in laser printers compatible with the H-P LaserJet2.
TILES is a 21-by-(approximately)21 font, with each pixel in the font generating
a 4-by-4 array of printer dots. Thus each character occupies an 84-by-
(approximately)84 cell of dots. The font includes the printable subset of the
ASCII character set.
The size of the font is appropriate for printing 3 lines per inch, with
approximately 30 characters (maximum) per line.
The appearance of the font must be seen to be appreciated.
All the software for developing or modifying the font, are included in both
source and executable form in this diskette. All code is written in the
language Microsoft C version 5.10.
FILES
-----
TILES.LOD containing the LaserJet2 commands and font to be downloaded for
exclusive use of this font only.
TILES.SFP containing the LaserJet2 commands and font to be downloaded for
shared use of this font along with other fonts.
TILES.BAT for downloading the font from file TILES.LOD.
TILES.TXT containing the character patterns as drawn by a text editor.
TILES2C.C containing the source code of TILES2C.EXE.
TILES2C.EXE for converting the character patterns into initialization data
for an array declaration in the C language.
TILES.C containing the initialization data created by TILES2C.EXE.
TIL2LOAD.C containing the source code of TIL2LOAD.EXE.
TIL2LOAD.EXE for generating file TILES.LOD.
TIL2SFP.C containing the source code of TIL2SFP.EXE.
TIL2SFP.EXE for generating file TILES.SFP.
CL_TIL2C.BAT for compiling and linking TILES2C.EXE.
TILES2C.LNK for linking TILES2C.EXE.
CL_TIL2L.BAT for compiling and linking TIL2LOAD.EXE.
TIL2LOAD.LNK for linking TIL2LOAD.EXE.
CL_TIL2S.BAT for compiling and linking TIL2SFP.EXE.
TIL2SFP.LNK for linking TIL2SFP.EXE.
TEST.TXT containing some example text to be printed, which will
demonstrate the font.
EDITING NEEDED
--------------
The *.BAT files contain directory references that are appropriate to my own
computer. You undoubtedly will want to edit these files, to change the
directory references.
HOW TO USE THE FONT
-------------------
Copy all the files from the distribution diskette into hard disk subdirectory
C:\LASER.
This section describes how to print exclusively with font TILES, using file
TILES.LOD. This section does not describe how to install font TILES into some
other word processing package. Refer to the instructions for your word
processor on how to perform that installation, and use file TILES.SFP.
Use the DOS COPY command, or file TILES.BAT, to copy file TILES.LOD to the
laser printer. In addition to downloading the font, file TILES.LOD contains
laser printer commands to reset the laser printer, to make the font permanent,
to make it the primary selected font, and to set spacing appropriate to the
font. TILES has font ID number 11.
EXAMPLE
-------
In this example, source code file TEST.TXT will be printed in font TILES.
Select the root directory of hard disk C:
C:
CD \
If hard disk subdirectory C:\LASER does not already exist, create it:
MKDIR \LASER
Make it be the current directory:
CD \LASER
Mount the distribuition diskette on drive A:, then copy all files:
COPY/V A:*.*
Remove the distribution diskette from the computer. Turn on the printer and
let it warm up. Then download font TILES with the aid of the BATCH file:
TILES
Print file TEST.TXT using a standard PC-DOS PRINT statement:
PRINT TEST.TXT
MORE ON HOW TO USE THE FONT
---------------------------
Downloading file TILES.SFP is not sufficient for subsequent use of the font.
It also is necessary to set the Vertical Motion Index of the laser printer.
The proper vertical spacing is 3 lines per inch, or 100 dots from the top of
one line to the top of the next line, or 16/48 inches per line. The Vertical
Motion Index is set by the Escape sequence:
e&l16C
where the lower case letter "e" represents the Escape character, and all the
other characters represent themselves. Observe that the character after the
ampersand "&" is a lower case letter "L".
HOW TO CREATE OR MODIFY THE FONT
--------------------------------
File TILES.TXT contains the character patterns as drawn by a text editor.
The characters appear in their order within the ASCII character set, starting
with character Exclamation Mark "!". Each character is drawn in a cell
enclosed by quotation marks. Inside the cell there must be only Asterisk and
Space characters, no Tab characters. All patterns must contain at least 1
Asterisk. Separating each pattern are: an empty line (no Spaces), a line of
20 dashes matching the (nominal) cell width, and another empty line. I used
the text editor programs PCWRITE and (Microsoft) M to draw the patterns.
PCWRITE does not leave Tab characters in the text it edits. M can be
configured so as not to leave Tab characters.
Program TILES2C reads the character patterns from file TILES.TXT, and converts
them to array initialization data for use in any C language program. The
output is written to file TILES.C.
The source code of program TIL2LOAD contains an array declaration, and an
#include "TILES.C"
statement to initialize the array with the character patterns. Program
TIL2LOAD must be recompiled whenever the character patterns are changed. Then
when TIL2LOAD is executed, it generates data file TILES.LOD. Similarly,
program TIL2SFP generates data file TILES.SFP.
Caution: Microsoft C version 5.0 has a bug in the use of 8086 register ES.
In order to avoid the bug, I do not use version 5.0. The bug has been fixed in
version 5.1. If only version 5.0 is available to you, you MIGHT avoid the bug
by disabling compiler optimization.
All Microsoft C programs in this diskette may be compiled using the small
memory model.
I have organized my C library as individual small files. Therefore all the
.LNK files contain /NOD parameters and name each library file separately.
To change the font ID number, change the definition at the beginning of file
TIL2LOAD.C, recompile, and rerun program TIL2LOAD.
REWARDS
-------
I am submitting this font as part of my contribution to the welfare of the
computing community. It is not to be used for direct commercial advantage,
unless it is included in some other product which has significant value
added. There may be a nominal service charge for copying and redistributing
this diskette.
Daniel Ross